<!-- 考试管理》数据导出 -->
<div class="layuimini-container layuimini-page-anim">
  <div class="layuimini-main">
    <blockquote class="site-text layui-elem-quote">
      <h2 class="u-m-b-10">(2021)区县新考B类第4299期 淮南 第839期</h2>
      <h4 class="u-m-b-10">考试时间：2021/07/30 08:30~2021/07/30 10:30 </h4>
    </blockquote>
    <div>
      <a class="layui-btn layui-btn-normal layui-btn-sm data-count-edit" lay-event="audit">打印</a>
      <a class="layui-btn layui-btn-danger layui-btn-sm data-count-edit" lay-event="audit">关闭</a>
    </div>
    <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
  </div>
</div>

<script>
  var tableData = [
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    },
    {
      'id': 10000,
      name: '小明',
      idCard: '3424000000',
      img: 'http://placehold.it/350x200',
      type: 'B',
      count: '3424000000',
      jigou: '小明',
      beizhu: '无'
    }
  ]
  layui.use(['form', 'table', 'miniPage', 'element', 'laydate'], function () {
    var $ = layui.jquery,
      table = layui.table
    table.render({
      elem: '#currentTableId',
      data: tableData,
      defaultToolbar: ['filter', 'exports', 'print'],
      cols: [[
        { field: 'id', title: '序号', sort: true },
        { field: 'name', title: '用户名' },
        { field: 'idCard', title: '身份证号' },
        { title: '报名照片', templet: '<div><img src="{{d.img}}" class="layui-table-link" style="height: 100%"/></div>' },
        { field: 'type', title: '报名类型' },
        { field: 'count', title: '准考证号' },
        { field: 'jigou', title: '签字' },
        { field: 'beizhu', title: '备注'}
      ]],
      limits: [10, 15, 20, 25, 50, 100],
      limit: 5,
      page: true,
      skin: 'line'
    })
  })

</script>
